Client Credentials
The client credentials flow does not grant access to the Banking APIs. To use them, the Authorization Code flow is required.
Token Request
POST /oauth2/token HTTP/1.1
Host: id.btgpactual.com
Content-type: application/x-www-form-urlencoded
Authorization: Basic <client_id:client_secret> // Base 64 encoded
grant_type=client_credentials&scope={scope}
Token Response
HTTP/1.1 200 OK
Content-Type: application/json
{"access_token":"<exemplo-access-token>","scope":"apps", "token_type":"Bearer","expires_in":86400}
HTTP/1.1 200 OK
Content-Type: application/json
{"access_token":"<exemplo-access-token>","scope":"apps", "token_type":"Bearer","expires_in":86400}